<?php
/**
 * Created by PhpStorm.
 * User: wanghongbing
 * Date: 2018/11/14
 * Time: 下午2:14
 */

namespace app\Home\controller;
use think\Controller;
use think\Model;
use think\Db;

class Test extends Controller
{
//测试方法
    public function test(){

        $title = 'test page';

        $this -> assign('title',$title);

        $table = Db::name('admin') ->select();

        var_dump($table);
        return $this ->fetch();

    }

}